<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>geometry</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >MetaGETA (Metadata Gathering, Extraction and Transformation)</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        Module&nbsp;geometry
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="geometry-module.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== MODULE DESCRIPTION ==================== -->
<h1 class="epydoc">Module geometry</h1><p class="nomargin-top"><span class="codelink"><a href="geometry-pysrc.html">source&nbsp;code</a></span></p>
<p>Geometry and dataset helper functions</p>

<hr />
<div class="fields">      <p><strong>To Do:</strong>
        Does the module name <i>really</i> describe its functions anymore? It 
    doesn't just do geometry now...
      </p>
</div><!-- ==================== CLASSES ==================== -->
<a name="section-Classes"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Classes</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Classes"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr bgcolor="#e8f0f8" >
  <th colspan="2" class="group-header"
    >&nbsp;&nbsp;&nbsp;&nbsp;Custom error class</th></tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="geometry.GDALError-class.html" class="summary-name">GDALError</a><br />
      For raising GDAL related errors
    </td>
  </tr>
<tr bgcolor="#e8f0f8" >
  <th colspan="2" class="group-header"
    >&nbsp;&nbsp;&nbsp;&nbsp;Shapefile Writer</th></tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="geometry.ShapeWriter-class.html" class="summary-name">ShapeWriter</a><br />
      A class for writing geometry and fields to ESRI shapefile format
    </td>
  </tr>
</table>
<!-- ==================== FUNCTIONS ==================== -->
<a name="section-Functions"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Functions</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Functions"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr bgcolor="#e8f0f8" >
  <th colspan="2" class="group-header"
    >&nbsp;&nbsp;&nbsp;&nbsp;Dataset Utilities</th></tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type"><code>osgeo.gdal.Dataset</code></span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#OpenDataset" class="summary-sig-name">OpenDataset</a>(<span class="summary-sig-arg">filepath</span>,
        <span class="summary-sig-arg">mode</span>=<span class="summary-sig-default">0</span>)</span><br />
      Open &amp; return a gdalDataset object</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#OpenDataset">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type"><code>(dict,list)</code></span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#ParseGDALinfo" class="summary-sig-name">ParseGDALinfo</a>(<span class="summary-sig-arg">filepath</span>)</span><br />
      Very basic gdalinfo parser, does not include colo(u)r tables, raster 
      attribute tables.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#ParseGDALinfo">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr bgcolor="#e8f0f8" >
  <th colspan="2" class="group-header"
    >&nbsp;&nbsp;&nbsp;&nbsp;Coordinate Utilities</th></tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type"><code>float</code></span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#DMS2DD" class="summary-sig-name">DMS2DD</a>(<span class="summary-sig-arg">dms</span>,
        <span class="summary-sig-arg">format</span>)</span><br />
      Convert coordinate in degrees, minutes, seconds to decimal degrees.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#DMS2DD">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr bgcolor="#e8f0f8" >
  <th colspan="2" class="group-header"
    >&nbsp;&nbsp;&nbsp;&nbsp;Geometry Utilities</th></tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type"><code>float</code></span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#Rotation" class="summary-sig-name">Rotation</a>(<span class="summary-sig-arg">gt</span>)</span><br />
      Get rotation angle from a geotransform</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#Rotation">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type"><code>(float,float)</code></span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#CellSize" class="summary-sig-name">CellSize</a>(<span class="summary-sig-arg">gt</span>)</span><br />
      Get cell size from a geotransform</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#CellSize">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type"><code>(float,float)</code></span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#SceneCentre" class="summary-sig-name">SceneCentre</a>(<span class="summary-sig-arg">gt</span>,
        <span class="summary-sig-arg">cols</span>,
        <span class="summary-sig-arg">rows</span>)</span><br />
      Get scene centre from a geotransform.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#SceneCentre">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type"><code>[gcp,...,gcp]</code></span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#ExtentToGCPs" class="summary-sig-name">ExtentToGCPs</a>(<span class="summary-sig-arg">ext</span>,
        <span class="summary-sig-arg">cols</span>,
        <span class="summary-sig-arg">rows</span>)</span><br />
      Form a gcp list from the 4 corners.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#ExtentToGCPs">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type"><code>[gcp,...,gcp]</code></span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#GeoTransformToGCPs" class="summary-sig-name">GeoTransformToGCPs</a>(<span class="summary-sig-arg">gt</span>,
        <span class="summary-sig-arg">cols</span>,
        <span class="summary-sig-arg">rows</span>)</span><br />
      Form a gcp list from a geotransform using the 4 corners.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#GeoTransformToGCPs">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type"><code>ogr.Geometry</code></span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#GeomFromExtent" class="summary-sig-name">GeomFromExtent</a>(<span class="summary-sig-arg">ext</span>,
        <span class="summary-sig-arg">srs</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">srs_wkt</span>=<span class="summary-sig-default">None</span>)</span><br />
      Get and OGR geometry object from a extent list</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#GeomFromExtent">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type"><code>ogr.Geometry</code></span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#ReprojectGeom" class="summary-sig-name">ReprojectGeom</a>(<span class="summary-sig-arg">geom</span>,
        <span class="summary-sig-arg">src_srs</span>,
        <span class="summary-sig-arg">tgt_srs</span>)</span><br />
      Reproject a geometry object.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#ReprojectGeom">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#InvGeoTransform" class="summary-sig-name">InvGeoTransform</a>(<span class="summary-sig-arg">gt_in</span>)</span><br />
      ************************************************************************
      *                        InvGeoTransform(gt_in) 
      ************************************************************************</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#InvGeoTransform">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#ApplyGeoTransform" class="summary-sig-name">ApplyGeoTransform</a>(<span class="summary-sig-arg">inx</span>,
        <span class="summary-sig-arg">iny</span>,
        <span class="summary-sig-arg">gt</span>)</span><br />
      Apply a geotransform</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#ApplyGeoTransform">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#MapToPixel" class="summary-sig-name">MapToPixel</a>(<span class="summary-sig-arg">mx</span>,
        <span class="summary-sig-arg">my</span>,
        <span class="summary-sig-arg">gt</span>)</span><br />
      Convert map to pixel coordinates</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#MapToPixel">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#PixelToMap" class="summary-sig-name">PixelToMap</a>(<span class="summary-sig-arg">px</span>,
        <span class="summary-sig-arg">py</span>,
        <span class="summary-sig-arg">gt</span>)</span><br />
      Convert pixel to map coordinates</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#PixelToMap">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr bgcolor="#e8f0f8" >
  <th colspan="2" class="group-header"
    >&nbsp;&nbsp;&nbsp;&nbsp;VRT Utilities</th></tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type"><code>gdal.Dataset</code></span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#CreateVRTCopy" class="summary-sig-name">CreateVRTCopy</a>(<span class="summary-sig-arg">ds</span>)</span><br />
      Create a VRT copy of a gdal.Dataset object.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#CreateVRTCopy">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type"><code>xml</code></span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#CreateMosaicedVRT" class="summary-sig-name">CreateMosaicedVRT</a>(<span class="summary-sig-arg">files</span>,
        <span class="summary-sig-arg">bands</span>,
        <span class="summary-sig-arg">srcrects</span>,
        <span class="summary-sig-arg">dstrects</span>,
        <span class="summary-sig-arg">cols</span>,
        <span class="summary-sig-arg">rows</span>,
        <span class="summary-sig-arg">datatype</span>,
        <span class="summary-sig-arg">relativeToVRT</span>=<span class="summary-sig-default">0</span>)</span><br />
      Create a VRT XML string that mosaics datasets.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#CreateMosaicedVRT">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type"><code>xml</code></span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#CreateSimpleVRT" class="summary-sig-name">CreateSimpleVRT</a>(<span class="summary-sig-arg">bands</span>,
        <span class="summary-sig-arg">cols</span>,
        <span class="summary-sig-arg">rows</span>,
        <span class="summary-sig-arg">datatype</span>,
        <span class="summary-sig-arg">relativeToVRT</span>=<span class="summary-sig-default">0</span>)</span><br />
      Create a VRT XML string with a simple source from one or more 
      datasets, each dataset will be output as a separate band.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#CreateSimpleVRT">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type"><code>xml</code></span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#CreateRawRasterVRT" class="summary-sig-name">CreateRawRasterVRT</a>(<span class="summary-sig-arg">bands</span>,
        <span class="summary-sig-arg">cols</span>,
        <span class="summary-sig-arg">rows</span>,
        <span class="summary-sig-arg">datatype</span>,
        <span class="summary-sig-arg">headeroffset</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">byteorder</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">relativeToVRT</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">nodata</span>=<span class="summary-sig-default">None</span>)</span><br />
      Create RawRaster VRT from one or more _single_ band files</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#CreateRawRasterVRT">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type"><code>xml</code></span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#CreateBSQRawRasterVRT" class="summary-sig-name">CreateBSQRawRasterVRT</a>(<span class="summary-sig-arg">filename</span>,
        <span class="summary-sig-arg">nbands</span>,
        <span class="summary-sig-arg">cols</span>,
        <span class="summary-sig-arg">rows</span>,
        <span class="summary-sig-arg">datatype</span>,
        <span class="summary-sig-arg">nodata</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">headeroffset</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">byteorder</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">relativeToVRT</span>=<span class="summary-sig-default">0</span>)</span><br />
      Create RawRaster VRT from a BSQ</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#CreateBSQRawRasterVRT">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type"><code>xml</code></span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#CreateBILRawRasterVRT" class="summary-sig-name">CreateBILRawRasterVRT</a>(<span class="summary-sig-arg">filename</span>,
        <span class="summary-sig-arg">nbands</span>,
        <span class="summary-sig-arg">cols</span>,
        <span class="summary-sig-arg">rows</span>,
        <span class="summary-sig-arg">datatype</span>,
        <span class="summary-sig-arg">nbits</span>,
        <span class="summary-sig-arg">nodata</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">headeroffset</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">byteorder</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">relativeToVRT</span>=<span class="summary-sig-default">0</span>)</span><br />
      Create RawRaster VRT from a BIL</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#CreateBILRawRasterVRT">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type"><code>xml</code></span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="geometry-module.html#CreateBIPRawRasterVRT" class="summary-sig-name">CreateBIPRawRasterVRT</a>(<span class="summary-sig-arg">filename</span>,
        <span class="summary-sig-arg">nbands</span>,
        <span class="summary-sig-arg">cols</span>,
        <span class="summary-sig-arg">rows</span>,
        <span class="summary-sig-arg">datatype</span>,
        <span class="summary-sig-arg">nbits</span>,
        <span class="summary-sig-arg">nodata</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">headeroffset</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">byteorder</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">relativeToVRT</span>=<span class="summary-sig-default">0</span>)</span><br />
      Create RawRaster VRT from BIP</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#CreateBIPRawRasterVRT">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="CreateCustomVRT"></a><span class="summary-sig-name">CreateCustomVRT</span>(<span class="summary-sig-arg">vrtxml</span>,
        <span class="summary-sig-arg">vrtcols</span>,
        <span class="summary-sig-arg">vrtrows</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="geometry-pysrc.html#CreateCustomVRT">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<!-- ==================== VARIABLES ==================== -->
<a name="section-Variables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Variables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="debug"></a><span class="summary-name">debug</span> = <code title="False">False</code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="__package__"></a><span class="summary-name">__package__</span> = <code title="None">None</code>
    </td>
  </tr>
</table>
<!-- ==================== FUNCTION DETAILS ==================== -->
<a name="section-FunctionDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Function Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-FunctionDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="OpenDataset"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">OpenDataset</span>(<span class="sig-arg">filepath</span>,
        <span class="sig-arg">mode</span>=<span class="sig-default">0</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#OpenDataset">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Open &amp; return a gdalDataset object</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>filepath</code></strong> (<code>str</code>) - path to dataset</li>
    </ul></dd>
    <dt>Returns: <code>osgeo.gdal.Dataset</code></dt>
        <dd>GDAL Dataset</dd>
  </dl>
</td></tr></table>
</div>
<a name="ParseGDALinfo"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">ParseGDALinfo</span>(<span class="sig-arg">filepath</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#ParseGDALinfo">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Very basic gdalinfo parser, does not include colo(u)r tables, raster 
  attribute tables.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>filepath</code></strong> (<code>str</code>) - path to dataset</li>
    </ul></dd>
    <dt>Returns: <code>(dict,list)</code></dt>
        <dd>GDAL info,extent coordinates</dd>
  </dl>
</td></tr></table>
</div>
<a name="DMS2DD"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">DMS2DD</span>(<span class="sig-arg">dms</span>,
        <span class="sig-arg">format</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#DMS2DD">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Convert coordinate in degrees, minutes, seconds to decimal 
  degrees.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>dms</code></strong> (str) - degrees, minutes, seconds</li>
        <li><strong class="pname"><code>format</code></strong> (str) - The format parameter is a string of equal length to the DMS 
          string and identifies the position of each of the following 
          elements. Any other string in the format parameter is ignored.
          <ul>
            <li>
              H - hemisphere
            </li>
            <li>
              D - degrees
            </li>
            <li>
              M - minutes
            </li>
            <li>
              S - seconds
            </li>
          </ul>
          <p>eg:</p>
          <ul>
            <li>
              <code>'27 45 12 E'   = 'DD MM SS H'</code>
            </li>
            <li>
              <code>'027 45 12 E'  = 'DDD MM SS H'</code>
            </li>
            <li>
              <code>'027-45-12-E'  = 'DDD MM SS H'</code>
            </li>
            <li>
              <code>'27,45,12.3 E' = 'DD MM SSSS H'</code>
            </li>
            <li>
              <code>'-27,45,12.3'  = 'DDD MM SSSS'</code>
            </li>
          </ul></li>
    </ul></dd>
    <dt>Returns: <code>float</code></dt>
        <dd>decimal degrees</dd>
  </dl>
</td></tr></table>
</div>
<a name="Rotation"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">Rotation</span>(<span class="sig-arg">gt</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#Rotation">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Get rotation angle from a geotransform</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>gt</code></strong> (<code>tuple/list</code>) - geotransform</li>
    </ul></dd>
    <dt>Returns: <code>float</code></dt>
        <dd>rotation angle</dd>
  </dl>
</td></tr></table>
</div>
<a name="CellSize"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">CellSize</span>(<span class="sig-arg">gt</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#CellSize">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Get cell size from a geotransform</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>gt</code></strong> (<code>tuple/list</code>) - geotransform</li>
    </ul></dd>
    <dt>Returns: <code>(float,float)</code></dt>
        <dd>(x,y) cell size</dd>
  </dl>
</td></tr></table>
</div>
<a name="SceneCentre"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">SceneCentre</span>(<span class="sig-arg">gt</span>,
        <span class="sig-arg">cols</span>,
        <span class="sig-arg">rows</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#SceneCentre">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Get scene centre from a geotransform.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>gt</code></strong> (<code>tuple/list</code>) - geotransform</li>
        <li><strong class="pname"><code>cols</code></strong> (<code>int</code>) - Number of columns in the dataset</li>
        <li><strong class="pname"><code>rows</code></strong> (<code>int</code>) - Number of rows in the dataset</li>
    </ul></dd>
    <dt>Returns: <code>(float,float)</code></dt>
        <dd>Scene centre coordinates</dd>
  </dl>
</td></tr></table>
</div>
<a name="ExtentToGCPs"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">ExtentToGCPs</span>(<span class="sig-arg">ext</span>,
        <span class="sig-arg">cols</span>,
        <span class="sig-arg">rows</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#ExtentToGCPs">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Form a gcp list from the 4 corners.</p>
  <p>This function is meant to be used to convert an extent to gcp's for 
  use in the gdal.GCPsToGeoTransform function.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>ext</code></strong> (<code>tuple/list</code>) - Extent, must be in order: 
          [[ulx,uly],[urx,ury],[lrx,lry],[llx,lly]]</li>
        <li><strong class="pname"><code>cols</code></strong> (<code>int</code>) - Number of columns in the dataset</li>
        <li><strong class="pname"><code>rows</code></strong> (<code>int</code>) - Number of rows in the dataset</li>
    </ul></dd>
    <dt>Returns: <code>[gcp,...,gcp]</code></dt>
        <dd>List of GCP objects</dd>
  </dl>
</td></tr></table>
</div>
<a name="GeoTransformToGCPs"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">GeoTransformToGCPs</span>(<span class="sig-arg">gt</span>,
        <span class="sig-arg">cols</span>,
        <span class="sig-arg">rows</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#GeoTransformToGCPs">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Form a gcp list from a geotransform using the 4 corners.</p>
  <p>This function is meant to be used to convert a geotransform to gcp's 
  so that the geocoded information can be reprojected.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>gt</code></strong> (<code>tuple/list</code>) - geotransform to convert to gcps</li>
        <li><strong class="pname"><code>cols</code></strong> (<code>int</code>) - number of columns in the dataset</li>
        <li><strong class="pname"><code>rows</code></strong> (<code>int</code>) - number of rows in the dataset</li>
    </ul></dd>
    <dt>Returns: <code>[gcp,...,gcp]</code></dt>
        <dd>List of GCP objects</dd>
  </dl>
</td></tr></table>
</div>
<a name="GeomFromExtent"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">GeomFromExtent</span>(<span class="sig-arg">ext</span>,
        <span class="sig-arg">srs</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">srs_wkt</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#GeomFromExtent">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Get and OGR geometry object from a extent list</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>ext</code></strong> (<code>tuple/list</code>) - extent coordinates</li>
        <li><strong class="pname"><code>srs</code></strong> (<code>str</code>) - SRS WKT string</li>
    </ul></dd>
    <dt>Returns: <code>ogr.Geometry</code></dt>
        <dd>Geometry object</dd>
  </dl>
</td></tr></table>
</div>
<a name="ReprojectGeom"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">ReprojectGeom</span>(<span class="sig-arg">geom</span>,
        <span class="sig-arg">src_srs</span>,
        <span class="sig-arg">tgt_srs</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#ReprojectGeom">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Reproject a geometry object.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>geom</code></strong> (<code>ogr.Geometry</code>) - OGR geometry object</li>
        <li><strong class="pname"><code>src_srs</code></strong> (<code>osr.SpatialReference</code>) - OSR SpatialReference object</li>
        <li><strong class="pname"><code>tgt_srs</code></strong> (<code>osr.SpatialReference</code>) - OSR SpatialReference object</li>
    </ul></dd>
    <dt>Returns: <code>ogr.Geometry</code></dt>
        <dd>OGRGeometry object</dd>
  </dl>
</td></tr></table>
</div>
<a name="InvGeoTransform"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">InvGeoTransform</span>(<span class="sig-arg">gt_in</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#InvGeoTransform">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>************************************************************************
  *                        InvGeoTransform(gt_in) 
  ************************************************************************</p>
  <p>** * Invert Geotransform. * * This function will invert a standard 3x2
  set of GeoTransform coefficients. * * @param  gt_in  Input geotransform 
  (six doubles - unaltered). * @return gt_out Output geotransform (six 
  doubles - updated) on success, *                None if the equation is 
  uninvertable.</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="ApplyGeoTransform"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">ApplyGeoTransform</span>(<span class="sig-arg">inx</span>,
        <span class="sig-arg">iny</span>,
        <span class="sig-arg">gt</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#ApplyGeoTransform">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Apply a geotransform</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>inx</code></strong> - Input x coordinate (double)</li>
        <li><strong class="pname"><code>iny</code></strong> - Input y coordinate (double)</li>
        <li><strong class="pname"><code>gt</code></strong> - Input geotransform (six doubles)</li>
    </ul></dd>
    <dt>Returns:</dt>
        <dd>outx,outy Output coordinates (two doubles)</dd>
  </dl>
</td></tr></table>
</div>
<a name="MapToPixel"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">MapToPixel</span>(<span class="sig-arg">mx</span>,
        <span class="sig-arg">my</span>,
        <span class="sig-arg">gt</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#MapToPixel">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Convert map to pixel coordinates</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>mx</code></strong> - Input map x coordinate (double)</li>
        <li><strong class="pname"><code>my</code></strong> - Input map y coordinate (double)</li>
        <li><strong class="pname"><code>gt</code></strong> - Input geotransform (six doubles)</li>
    </ul></dd>
    <dt>Returns:</dt>
        <dd>px,py Output coordinates (two ints)</dd>
  </dl>
<div class="fields">      <strong>Change Log:</strong>
      <ul class="nomargin-top">
        <li>
        changed int(p[x,y]+0.5) to int(p[x,y]) as per 
    http://lists.osgeo.org/pipermail/gdal-dev/2010-June/024956.html
        </li>
        <li>
        return floats
        </li>
      </ul>
      <p><strong>Note:</strong>
        0,0 is UL corner of UL pixel, 0.5,0.5 is centre of UL pixel
      </p>
</div></td></tr></table>
</div>
<a name="PixelToMap"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">PixelToMap</span>(<span class="sig-arg">px</span>,
        <span class="sig-arg">py</span>,
        <span class="sig-arg">gt</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#PixelToMap">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Convert pixel to map coordinates</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>px</code></strong> - Input pixel x coordinate (double)</li>
        <li><strong class="pname"><code>py</code></strong> - Input pixel y coordinate (double)</li>
        <li><strong class="pname"><code>gt</code></strong> - Input geotransform (six doubles)</li>
    </ul></dd>
    <dt>Returns:</dt>
        <dd>mx,my Output coordinates (two doubles)</dd>
  </dl>
<div class="fields">      <p><strong>Note:</strong>
        0,0 is UL corner of UL pixel, 0.5,0.5 is centre of UL pixel
      </p>
</div></td></tr></table>
</div>
<a name="CreateVRTCopy"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">CreateVRTCopy</span>(<span class="sig-arg">ds</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#CreateVRTCopy">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Create a VRT copy of a gdal.Dataset object.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>ds</code></strong> (<code>gdal.Dataset</code>) - Dataset object</li>
    </ul></dd>
    <dt>Returns: <code>gdal.Dataset</code></dt>
        <dd>VRT Dataset object</dd>
  </dl>
</td></tr></table>
</div>
<a name="CreateMosaicedVRT"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">CreateMosaicedVRT</span>(<span class="sig-arg">files</span>,
        <span class="sig-arg">bands</span>,
        <span class="sig-arg">srcrects</span>,
        <span class="sig-arg">dstrects</span>,
        <span class="sig-arg">cols</span>,
        <span class="sig-arg">rows</span>,
        <span class="sig-arg">datatype</span>,
        <span class="sig-arg">relativeToVRT</span>=<span class="sig-default">0</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#CreateMosaicedVRT">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Create a VRT XML string that mosaics datasets.</p>
  <p>For further info on VRT's, see the <a 
  href="http://www.gdal.org/gdal_vrttut.html" target="_top">GDAL VRT 
  Tutorial</a></p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>files</code></strong> (<code>[str,...,str]</code>) - List of files to mosaic</li>
        <li><strong class="pname"><code>bands</code></strong> (<code>[int,...,int]</code>) - List of band numbers (1 based). Eg. [1,2,3] will mosaic the first
          band from each file into the 1st band of the output VRT, etc.</li>
        <li><strong class="pname"><code>srcrects</code></strong> (<code>[SrcRect,...,SrcRect]</code>) - List of SrcRects, one per file, in image not map units. E.g 
          [[0,0,512,512],...] will be output as &lt;SrcRect 
          xOff=&quot;0&quot; yOff=&quot;0&quot; xSize=&quot;512&quot; 
          ySize=&quot;512&quot;/&gt;. The SrcRect allows you to subset your
          input image.</li>
        <li><strong class="pname"><code>dstrects</code></strong> (<code>[DstRect,...,DstRect]</code>) - List of DstRects, One per file, in image not map units. E.g 
          [[512,512,1024,1024],...] will be output as &lt;DstRect 
          xOff=&quot;512&quot; yOff=&quot;512&quot; xSize=&quot;1024&quot; 
          ySize=&quot;1024&quot;/&gt; The DstRect determines the spatial 
          position of the input image in the mosaic.</li>
        <li><strong class="pname"><code>cols</code></strong> (<code>int</code>) - The number of columns in the output mosaic</li>
        <li><strong class="pname"><code>rows</code></strong> (<code>int</code>) - The number of rows in the output mosaic</li>
        <li><strong class="pname"><code>datatype</code></strong> (<code>str</code>) - GDAL datatype name. Eg. Byte, Int32, UInt16</li>
    </ul></dd>
    <dt>Returns: <code>xml</code></dt>
        <dd>VRT XML string</dd>
  </dl>
</td></tr></table>
</div>
<a name="CreateSimpleVRT"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">CreateSimpleVRT</span>(<span class="sig-arg">bands</span>,
        <span class="sig-arg">cols</span>,
        <span class="sig-arg">rows</span>,
        <span class="sig-arg">datatype</span>,
        <span class="sig-arg">relativeToVRT</span>=<span class="sig-default">0</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#CreateSimpleVRT">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Create a VRT XML string with a simple source from one or more 
  datasets, each dataset will be output as a separate band.</p>
  <p>For further info on VRT's, see the <a 
  href="http://www.gdal.org/gdal_vrttut.html" target="_top">GDAL VRT 
  Tutorial</a></p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>bands</code></strong> (<code>[str,...,str]</code>) - List of files. The first file becomes the first band and so 
          forth.</li>
        <li><strong class="pname"><code>cols</code></strong> (<code>int</code>) - The number of columns in the output VRT</li>
        <li><strong class="pname"><code>rows</code></strong> (<code>int</code>) - The number of rows in the output VRT</li>
        <li><strong class="pname"><code>datatype</code></strong> (<code>str</code>) - GDAL datatype name. Eg. Byte, Int32, UInt16</li>
    </ul></dd>
    <dt>Returns: <code>xml</code></dt>
        <dd>VRT XML string</dd>
  </dl>
</td></tr></table>
</div>
<a name="CreateRawRasterVRT"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">CreateRawRasterVRT</span>(<span class="sig-arg">bands</span>,
        <span class="sig-arg">cols</span>,
        <span class="sig-arg">rows</span>,
        <span class="sig-arg">datatype</span>,
        <span class="sig-arg">headeroffset</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">byteorder</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">relativeToVRT</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">nodata</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#CreateRawRasterVRT">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Create RawRaster VRT from one or more _single_ band files</p>
  <p>For further info on VRT's, see the <a 
  href="http://www.gdal.org/gdal_vrttut.html" target="_top">GDAL VRT 
  Tutorial</a></p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>bands</code></strong> (<code>[str,...,str]</code>) - List of files. The first file becomes the first band and so 
          forth.</li>
        <li><strong class="pname"><code>cols</code></strong> (<code>int</code>) - The number of columns in the output VRT</li>
        <li><strong class="pname"><code>rows</code></strong> (<code>int</code>) - The number of rows in the output VRT</li>
        <li><strong class="pname"><code>datatype</code></strong> (<code>str</code>) - GDAL datatype name. Eg. Byte, Int32, UInt16</li>
        <li><strong class="pname"><code>headeroffset</code></strong> (<code>int</code>) - Number of bytes to skip at the start of the file</li>
        <li><strong class="pname"><code>byteorder</code></strong> (<code>str</code>) - Byte order of the file (MSB or LSB)</li>
    </ul></dd>
    <dt>Returns: <code>xml</code></dt>
        <dd>VRT XML string</dd>
  </dl>
</td></tr></table>
</div>
<a name="CreateBSQRawRasterVRT"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">CreateBSQRawRasterVRT</span>(<span class="sig-arg">filename</span>,
        <span class="sig-arg">nbands</span>,
        <span class="sig-arg">cols</span>,
        <span class="sig-arg">rows</span>,
        <span class="sig-arg">datatype</span>,
        <span class="sig-arg">nodata</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">headeroffset</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">byteorder</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">relativeToVRT</span>=<span class="sig-default">0</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#CreateBSQRawRasterVRT">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Create RawRaster VRT from a BSQ</p>
  <p>BSQ = Band-Sequential or Band-Interleaved</p>
  <p>For further info on VRT's, see the <a 
  href="http://www.gdal.org/gdal_vrttut.html" target="_top">GDAL VRT 
  Tutorial</a></p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>filename</code></strong> (<code>str</code>) - File name</li>
        <li><strong class="pname"><code>nbands</code></strong> (<code>int</code>) - The number of bands in the output VRT (&lt;= nbands in input 
          file)</li>
        <li><strong class="pname"><code>cols</code></strong> (<code>int</code>) - The number of columns in the output VRT</li>
        <li><strong class="pname"><code>rows</code></strong> (<code>int</code>) - The number of rows in the output VRT</li>
        <li><strong class="pname"><code>datatype</code></strong> (<code>str</code>) - GDAL datatype name. Eg. Byte, Int32, UInt16</li>
        <li><strong class="pname"><code>nodata</code></strong> (<code>float</code>) - No data/Null value</li>
        <li><strong class="pname"><code>headeroffset</code></strong> (<code>int</code>) - Number of bytes to skip at the start of the file</li>
        <li><strong class="pname"><code>byteorder</code></strong> (<code>str</code>) - Byte order of the file (MSB or LSB)</li>
    </ul></dd>
    <dt>Returns: <code>xml</code></dt>
        <dd>VRT XML string</dd>
  </dl>
</td></tr></table>
</div>
<a name="CreateBILRawRasterVRT"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">CreateBILRawRasterVRT</span>(<span class="sig-arg">filename</span>,
        <span class="sig-arg">nbands</span>,
        <span class="sig-arg">cols</span>,
        <span class="sig-arg">rows</span>,
        <span class="sig-arg">datatype</span>,
        <span class="sig-arg">nbits</span>,
        <span class="sig-arg">nodata</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">headeroffset</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">byteorder</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">relativeToVRT</span>=<span class="sig-default">0</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#CreateBILRawRasterVRT">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Create RawRaster VRT from a BIL</p>
  <p>BIL = Band-Interleaved-by-Line or Row-Interleaved</p>
  <p>For further info on VRT's, see the <a 
  href="http://www.gdal.org/gdal_vrttut.html" target="_top">GDAL VRT 
  Tutorial</a></p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>filename</code></strong> (<code>str</code>) - File name</li>
        <li><strong class="pname"><code>nbands</code></strong> (<code>int</code>) - The number of bands in the output VRT (&lt;= nbands in input 
          file)</li>
        <li><strong class="pname"><code>cols</code></strong> (<code>int</code>) - The number of columns in the output VRT</li>
        <li><strong class="pname"><code>rows</code></strong> (<code>int</code>) - The number of rows in the output VRT</li>
        <li><strong class="pname"><code>datatype</code></strong> (<code>str</code>) - GDAL datatype name. Eg. Byte, Int32, UInt16</li>
        <li><strong class="pname"><code>nodata</code></strong> (<code>float</code>) - No data/Null value</li>
        <li><strong class="pname"><code>headeroffset</code></strong> (<code>int</code>) - Number of bytes to skip at the start of the file</li>
        <li><strong class="pname"><code>byteorder</code></strong> (<code>str</code>) - Byte order of the file (MSB or LSB)</li>
    </ul></dd>
    <dt>Returns: <code>xml</code></dt>
        <dd>VRT XML string</dd>
  </dl>
</td></tr></table>
</div>
<a name="CreateBIPRawRasterVRT"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">CreateBIPRawRasterVRT</span>(<span class="sig-arg">filename</span>,
        <span class="sig-arg">nbands</span>,
        <span class="sig-arg">cols</span>,
        <span class="sig-arg">rows</span>,
        <span class="sig-arg">datatype</span>,
        <span class="sig-arg">nbits</span>,
        <span class="sig-arg">nodata</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">headeroffset</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">byteorder</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">relativeToVRT</span>=<span class="sig-default">0</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="geometry-pysrc.html#CreateBIPRawRasterVRT">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Create RawRaster VRT from BIP</p>
  <p>BIP = Band-Interleaved-by-Pixel or Pixel-Interleaved</p>
  <p>For further info on VRT's, see the <a 
  href="http://www.gdal.org/gdal_vrttut.html" target="_top">GDAL VRT 
  Tutorial</a></p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>filename</code></strong> (<code>str</code>) - File name</li>
        <li><strong class="pname"><code>nbands</code></strong> (<code>int</code>) - The number of bands in the output VRT (&lt;= nbands in input 
          file)</li>
        <li><strong class="pname"><code>cols</code></strong> (<code>int</code>) - The number of columns in the output VRT</li>
        <li><strong class="pname"><code>rows</code></strong> (<code>int</code>) - The number of rows in the output VRT</li>
        <li><strong class="pname"><code>datatype</code></strong> (<code>str</code>) - GDAL datatype name. Eg. Byte, Int32, UInt16</li>
        <li><strong class="pname"><code>nodata</code></strong> (<code>float</code>) - No data/Null value</li>
        <li><strong class="pname"><code>headeroffset</code></strong> (<code>int</code>) - Number of bytes to skip at the start of the file</li>
        <li><strong class="pname"><code>byteorder</code></strong> (<code>str</code>) - Byte order of the file (MSB or LSB)</li>
    </ul></dd>
    <dt>Returns: <code>xml</code></dt>
        <dd>VRT XML string</dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >MetaGETA (Metadata Gathering, Extraction and Transformation)</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    &nbsp;
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
